/** @type {import('stylelint').Config} */
export default {
  extends: [
    'stylelint-config-standard-scss',
  ],
  plugins: [
    '@stylistic/stylelint-plugin',
  ],
  rules: {
    'custom-property-empty-line-before': ['never'],
    'comment-empty-line-before': [
      'always',
      {
        except: [
          'first-nested',
        ],
        ignore: [
          'stylelint-commands',
        ],
      },
    ],
    'selector-pseudo-class-no-unknown': [
      true,
      {
        ignorePseudoClasses: ['global', 'deep'],
      },
    ],
    'selector-class-pattern': ['.*'],
  },
  overrides: [
    {
      files: [
        '*.scss',
        '**/*.scss',
      ],
      customSyntax: 'postcss-scss',
    },
    {
      files: [
        '*.vue',
        '**/*.vue',
      ],
      customSyntax: 'postcss-html',
    },
  ],
}
